<?php

class Model_Course extends \Orm\Model
{
    protected static $_properties = array(
        'id', 
        'name',
        'slug',
        'information',
        'created_at',
        'updated_at',
    );
    
    public static $_observers = array(
        'Orm\Observer_CreatedAt' => array(
            'events' => array('before_insert'),
            'mysql_timestamp' => false,
        ),
        'Orm\Observer_UpdatedAt' => array(
            'events' => array('before_update'),
            'mysql_timestamp' => false,
        ),
    );
    
    protected static $_table_name = "course";
}
